import request from '@/utils/request'

// 登录
export function loginAPI (data) {
  return request({
    method: 'POST',
    url: '/index/login',
    data: data
  })
}

// 注册
export function registerAPI (data) {
  return request({
    method: 'POST',
    url: '/index/reg',
    data: data
  })
}
